package com.platform.core.entity;

import lombok.Getter;
import lombok.Setter;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * Description: ncloud_sys_name_standard实体类
 *
 * @author Coder
 */
@Setter
@Getter
@Entity
@Table(name = "ncloud_sys_name_standard")
public class NcloudSysNameStandardEntity implements Serializable {

    /**
    * id
    */
    @Id
    @GenericGenerator(name = "system-uuid", strategy = "uuid")
    @GeneratedValue(generator = "system-uuid")
    private String id;

    /**
    * 规范名称
    */
    @Column(name = "name" )
    private String name;

    /**
     * 适用对象键 1:数据模型 2:采报表单 3：文件
     */
    @Column(name = "applicable_key" )
    private String applicableKey;

    /**
     * 适用对象键 1:数据模型 2:采报表单 3：文件
     */
    @Column(name = "applicable_name" )
    private String applicableName;

    /**
    * 分隔符键 _:下划线 -:中划线
    */
    @Column(name = "separator_key" )
    private String separatorKey;

    /**
    * 分隔符值 _:下划线 -:中划线
    */
    @Column(name = "separator_name" )
    private String separatorName;

    /**
    * 格式 样例
    */
    @Column(name = "format" )
    private String format;

    /**
    * 最大长度
    */
    @Column(name = "length" )
    private Integer length;

    /**
    * 描述
    */
    @Column(name = "remark" )
    private String remark;

    /**
    * 状态 启用1 禁用 0
    */
    @Column(name = "status" )
    private String status;

    /**
    * 删除标志
    */
    @Column(name = "flag" )
    private String flag;

    /**
    * 创建日期
    */
    @Column(name = "create_date" )
    private LocalDateTime createDate;

    /**
    * 创建人
    */
    @Column(name = "create_by" )
    private String createBy;

    /**
    * 更新日期
    */
    @Column(name = "update_date" )
    private LocalDateTime updateDate;

    /**
    * 更新人
    */
    @Column(name = "update_by" )
    private String updateBy;

    /**
     * 创建人名称
     */
    @Column(name = "create_name")
    private String createName;
    /**
     * 更新人名称
     */
    @Column(name = "update_name" )
    private String updateName;

}
